<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      var uname = "张三丰"
      var age = 18
      var sex = "男"
      var hobby = "打太极"
      var str = "<h2>个人简历</h2>"
      str += "<ul>"
      str += `<li>姓名：${uname}</li>`
      str += `<li>年龄：${age}</li>`
      str += `<li>性别：${sex}</li>`
      str += `<li>爱好：${hobby}</li>`

      str += "</ul>"
      document.write(str)
    </script>
  </body>
</html>
